<?php
/**
 * Created by PhpStorm.
 * User: kongqi
 * Date: 2019/10/4
 * Time: 13:16
 */

namespace App\Plugin\HostServer\Models;


class PnHostSvNumber extends HostServerBase
{
    public static function getStatus($field=''){
        $type=[
            1=>'每天增加',
            2=>'固定'
        ];
        return $field==''?$type:$type[$field];
    }

    /**
     * 取得type 名字
     * @return array|mixed
     */
    public function getTypeNameAttributes()
    {
        return static::getStatus($this->type);
    }

}